<?php

namespace App\Http\Controllers\Api;

use App\Http\Requests\Api\UserAskForGoodsRequest;
use App\Services\UserAskForGoodsService;

class UserAskForGoodsController extends Controller
{
    //询价的接口 客户都进行了哪些产品的询价
    public function store(UserAskForGoodsRequest $request,UserAskForGoodsService $askForGoodsService){
        $state = $askForGoodsService->recordUserAskForGoods($request->user(),$request->goods_id);
        return response()->json($state)->setStatusCode(200);
    }
}
